package com.example.infrastructure.persistence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.infrastructure.common.BasePO;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 科室表 PO
 *
 * @author wangal
 * @since 2025-07-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("departments")
@Schema(name = "Departments", description = "科室表")
public class Departments extends BasePO {

    private static final long serialVersionUID = 1L;

    @Schema(description = "科室名称")
    @TableField("dept_name")
    private String deptName;

    @Schema(description = "科室编码")
    @TableField("dept_code")
    private String deptCode;

    @Schema(description = "科室描述")
    @TableField("dept_desc")
    private String deptDesc;

    @Schema(description = "上级科室ID")
    @TableField("parent_id")
    private Long parentId;

    @Schema(description = "排序")
    @TableField("sort_order")
    private Integer sortOrder;

    @Schema(description = "科室图标")
    @TableField("icon")
    private String icon;

    @Schema(description = "状态：1正常，0禁用")
    @TableField("status")
    private Byte status;

    @Schema(description = "租户编号")
    @TableField("tenant_id")
    private Long tenantId;


}